<?php
/**
 * Clase DP para SoOrdenLineaDP
 *
 * @package    
 * @subpackage SoOrdenLineaDP
 * @author     hans
 * @version    SVN:: SoOrdenLineaDP.class.php,v 1.1 2012-05-07 00:52:51 Hans.parra Exp $
 */

require_once('class/common/conexion.php');
require_once('class/so/ordenes/BDP/BaseSoOrdenLineaDP.class.php');

class SoOrdenLineaDP extends BaseSoOrdenLineaDP
{

    public function eliminarSoOrdenDetalle()
    {
        try 
        {
            $o_conexion = new BaseDatos();
            $con = $o_conexion->conectar();
            $sql = "DELETE FROM so_orden_linea WHERE 1 AND sol_soId='".$this->getSoId()."';"; 
            $result = mysql_query($sql);
            
            return true;
            
        }catch ( Exception $o_Error )
        {
          throw new Exception($o_Error->getMessage().' en '.$o_Error->getFile().' linea '.$o_Error->getLine());
        }
    }

}